package com.ruoyi.jobSys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jobSys.mapper.JoblistMapper;
import com.ruoyi.jobSys.domain.Joblist;
import com.ruoyi.jobSys.service.IJoblistService;

/**
 * 岗位管理Service业务层处理
 * 
 * @author binbin
 * @date 2024-05-19
 */
@Service
public class JoblistServiceImpl implements IJoblistService 
{
    @Autowired
    private JoblistMapper joblistMapper;

    /**
     * 查询岗位管理
     * 
     * @param jobId 岗位管理主键
     * @return 岗位管理
     */
    @Override
    public Joblist selectJoblistByJobId(Long jobId)
    {
        return joblistMapper.selectJoblistByJobId(jobId);
    }

    /**
     * 查询岗位管理列表
     * 
     * @param joblist 岗位管理
     * @return 岗位管理
     */
    @Override
    public List<Joblist> selectJoblistList(Joblist joblist)
    {
        return joblistMapper.selectJoblistList(joblist);
    }

    /**
     * 新增岗位管理
     * 
     * @param joblist 岗位管理
     * @return 结果
     */
    @Override
    public int insertJoblist(Joblist joblist)
    {
        return joblistMapper.insertJoblist(joblist);
    }

    /**
     * 修改岗位管理
     * 
     * @param joblist 岗位管理
     * @return 结果
     */
    @Override
    public int updateJoblist(Joblist joblist)
    {
        return joblistMapper.updateJoblist(joblist);
    }

    /**
     * 批量删除岗位管理
     * 
     * @param jobIds 需要删除的岗位管理主键
     * @return 结果
     */
    @Override
    public int deleteJoblistByJobIds(Long[] jobIds)
    {
        return joblistMapper.deleteJoblistByJobIds(jobIds);
    }

    /**
     * 删除岗位管理信息
     * 
     * @param jobId 岗位管理主键
     * @return 结果
     */
    @Override
    public int deleteJoblistByJobId(Long jobId)
    {
        return joblistMapper.deleteJoblistByJobId(jobId);
    }
}
